package com.laicunba.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.laicunba.pojo.AccessItemDO;
import com.laicunba.service.AccessItemService;

@Service
public class AccessItemServiceImpl extends BaseServiceImpl implements AccessItemService {

	@Override
	public boolean addMenuAccess(String roleId, String menuId) {
		AccessItemDO accessItemDO = new AccessItemDO();
		accessItemDO.setRoleId(roleId);
		accessItemDO.setMenuId(menuId);
		accessItemDO.setItemType("menu");
		return create(accessItemDO);
	}

	@Override
	public List<String> findActionPermission(String managerUsrId) { 
		return queryDao.selectList("ACCESS_ITEM.findActionPermission", managerUsrId);
	}

}
